const routes = [
    {
        name: "Login", //路由名称
        path: "/", //访问路径
        component: () => import('@/invoicing/login') //组件的路径
    },
    {
        name: "Menu",
        path: "/menu",
        component: () => import('@/invoicing/menu'),
        children: [
            {
                name: "userIndex", //首页
                path: "/menu/index", //访问路径
                component: () => import('@/invoicing/index') //组件的路径
            },
            {
                name: "client", //客户
                path: "/menu/client", //访问路径
                component: () => import('@/invoicing/client') //组件的路径
            },
            {
                name: "vendor", //供应商
                path: "/menu/vendor", //访问路径
                component: () => import('@/invoicing/vendor') //组件的路径
            },{
                name: "Product", //库存一览
                path: "/menu/product", //访问路径
                component: () => import('@/invoicing/product') //组件的路径
            },{
                name: "Log", //日志一览
                path: "/menu/log", //访问路径
                component: () => import('@/invoicing/log') //组件的路径
            },{
                name: "Role", //角色
                path: "/menu/role", //访问路径
                component: () => import('@/invoicing/role') //组件的路径
            },{
                name: "SaleCar", //销售车
                path: "/menu/saleCar", //访问路径
                component: () => import('@/invoicing/saleCar') //组件的路径
            },{
                name: "UpdatePwd", //修改密码
                path: "/menu/updatePwd", //访问路径
                component: () => import('@/invoicing/updatepwd') //组件的路径
            },{
                name: "User", //用户
                path: "/menu/user", //访问路径
                component: () => import('@/invoicing/user') //组件的路径
            },{
                name: "SaleStats", //圆饼图
                path: "/menu/saleStats", //访问路径
                component: () => import('@/invoicing/saleStats') //组件的路径
            },{
                name: "SaleInfo", //销售详情
                path: "/menu/saleInfo", //访问路径
                component: () => import('@/invoicing/saleInfo') //组件的路径
            },{
                name: "BuyCar", //采购车
                path: "/menu/buyCar", //访问路径
                component: () => import('@/invoicing/buyCar') //组件的路径
            },{
                name: "BuyInfo", //采购详情
                path: "/menu/buyInfo", //访问路径
                component: () => import('@/invoicing/buyInfo') //组件的路径
            },{
                name: "Month", //柱状图
                path: "/menu/month", //访问路径
                component: () => import('@/invoicing/month') //组件的路径
            }
        ]
    },

];

export default routes ;